<%
    /**
     * 功能按钮区
     * edited by amon 2005-8-16
     */
%>
<style>
	.funcButton
	{
		text-align: center;
		background:url('<%= request.getContextPath()%>/images/FB_L.gif');
		height:18px;
		width:47px;
		cursor:hand;
	}
}/*通用链接*/
</style>
<script>
	function mouseOver(obj)
	{
		obj.style.background ="url('<%= request.getContextPath()%>/images/FB_H.gif')";
	}
	function mouseOut(obj)
	{
		obj.style.background ="url('<%= request.getContextPath()%>/images/FB_L.gif')";
	}
</script>
<%
    logger.info("构造功能按钮区");
    FBArea fbArea = (FBArea)request.getAttribute("viewer");
    logger.debug("  -- 取功能按钮");
    List fbs = fbArea.getButtons(request.getContextPath());
    logger.debug("  -- 显示功能按钮");
    for(int i = 0; i < fbs.size(); i ++)
    {
        FuncButton fb = (FuncButton)fbs.get(i);
        logger.debug(i + " " + fb.toString());
%>
        <td valign="top">
            <div class='funcButton' onmouseout='mouseOut(this)' onmouseover='mouseOver(this)' align='center'>
                <a href="#" onclick = "<%= fb.getOnClickJSFunc()%>";><%= fb.getText()%></a>
            </div>
        </td>
<%
    }// for
    logger.info("  -- FBArea.jsp 完毕");
%>
